package com.autohome.wz.business.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CfwPaPetroOrder implements Serializable {
    private Integer id;

    private String ordernum;

    private Integer stationId;

    private BigDecimal totalPrice;

    private String transactionNumber;

    private BigDecimal supplierDiscountAmt;

    private BigDecimal infoServiceFee;

    private BigDecimal discountAmt;

    private String discountBatchNo;

    private String couponName;

    private BigDecimal couponFaceAmt;

    private BigDecimal satisfiedAmount;

    private String couponType;

    private String remark;

    private Integer isDel;

    private Date createdStime;

    private Date modifiedStime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum == null ? null : ordernum.trim();
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getTransactionNumber() {
        return transactionNumber;
    }

    public void setTransactionNumber(String transactionNumber) {
        this.transactionNumber = transactionNumber == null ? null : transactionNumber.trim();
    }

    public BigDecimal getSupplierDiscountAmt() {
        return supplierDiscountAmt;
    }

    public void setSupplierDiscountAmt(BigDecimal supplierDiscountAmt) {
        this.supplierDiscountAmt = supplierDiscountAmt;
    }

    public BigDecimal getInfoServiceFee() {
        return infoServiceFee;
    }

    public void setInfoServiceFee(BigDecimal infoServiceFee) {
        this.infoServiceFee = infoServiceFee;
    }

    public BigDecimal getDiscountAmt() {
        return discountAmt;
    }

    public void setDiscountAmt(BigDecimal discountAmt) {
        this.discountAmt = discountAmt;
    }

    public String getDiscountBatchNo() {
        return discountBatchNo;
    }

    public void setDiscountBatchNo(String discountBatchNo) {
        this.discountBatchNo = discountBatchNo == null ? null : discountBatchNo.trim();
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName == null ? null : couponName.trim();
    }

    public BigDecimal getCouponFaceAmt() {
        return couponFaceAmt;
    }

    public void setCouponFaceAmt(BigDecimal couponFaceAmt) {
        this.couponFaceAmt = couponFaceAmt;
    }

    public BigDecimal getSatisfiedAmount() {
        return satisfiedAmount;
    }

    public void setSatisfiedAmount(BigDecimal satisfiedAmount) {
        this.satisfiedAmount = satisfiedAmount;
    }

    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType == null ? null : couponType.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreatedStime() {
        return createdStime;
    }

    public void setCreatedStime(Date createdStime) {
        this.createdStime = createdStime;
    }

    public Date getModifiedStime() {
        return modifiedStime;
    }

    public void setModifiedStime(Date modifiedStime) {
        this.modifiedStime = modifiedStime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfwPaPetroOrder other = (CfwPaPetroOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrdernum() == null ? other.getOrdernum() == null : this.getOrdernum().equals(other.getOrdernum()))
            && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId()))
            && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice()))
            && (this.getTransactionNumber() == null ? other.getTransactionNumber() == null : this.getTransactionNumber().equals(other.getTransactionNumber()))
            && (this.getSupplierDiscountAmt() == null ? other.getSupplierDiscountAmt() == null : this.getSupplierDiscountAmt().equals(other.getSupplierDiscountAmt()))
            && (this.getInfoServiceFee() == null ? other.getInfoServiceFee() == null : this.getInfoServiceFee().equals(other.getInfoServiceFee()))
            && (this.getDiscountAmt() == null ? other.getDiscountAmt() == null : this.getDiscountAmt().equals(other.getDiscountAmt()))
            && (this.getDiscountBatchNo() == null ? other.getDiscountBatchNo() == null : this.getDiscountBatchNo().equals(other.getDiscountBatchNo()))
            && (this.getCouponName() == null ? other.getCouponName() == null : this.getCouponName().equals(other.getCouponName()))
            && (this.getCouponFaceAmt() == null ? other.getCouponFaceAmt() == null : this.getCouponFaceAmt().equals(other.getCouponFaceAmt()))
            && (this.getSatisfiedAmount() == null ? other.getSatisfiedAmount() == null : this.getSatisfiedAmount().equals(other.getSatisfiedAmount()))
            && (this.getCouponType() == null ? other.getCouponType() == null : this.getCouponType().equals(other.getCouponType()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
            && (this.getCreatedStime() == null ? other.getCreatedStime() == null : this.getCreatedStime().equals(other.getCreatedStime()))
            && (this.getModifiedStime() == null ? other.getModifiedStime() == null : this.getModifiedStime().equals(other.getModifiedStime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrdernum() == null) ? 0 : getOrdernum().hashCode());
        result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode());
        result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode());
        result = prime * result + ((getTransactionNumber() == null) ? 0 : getTransactionNumber().hashCode());
        result = prime * result + ((getSupplierDiscountAmt() == null) ? 0 : getSupplierDiscountAmt().hashCode());
        result = prime * result + ((getInfoServiceFee() == null) ? 0 : getInfoServiceFee().hashCode());
        result = prime * result + ((getDiscountAmt() == null) ? 0 : getDiscountAmt().hashCode());
        result = prime * result + ((getDiscountBatchNo() == null) ? 0 : getDiscountBatchNo().hashCode());
        result = prime * result + ((getCouponName() == null) ? 0 : getCouponName().hashCode());
        result = prime * result + ((getCouponFaceAmt() == null) ? 0 : getCouponFaceAmt().hashCode());
        result = prime * result + ((getSatisfiedAmount() == null) ? 0 : getSatisfiedAmount().hashCode());
        result = prime * result + ((getCouponType() == null) ? 0 : getCouponType().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        result = prime * result + ((getCreatedStime() == null) ? 0 : getCreatedStime().hashCode());
        result = prime * result + ((getModifiedStime() == null) ? 0 : getModifiedStime().hashCode());
        return result;
    }
}